# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:        潘炎珍  
# Name:         hw01
# Description:
# Author:       98745
# Date:         2019/3/6
#-------------------------------------------------------------------------------
d={
'1~99':[],
'100~999':[],
'1000~1999':[]
}
def get(n):
    leap = 1
    k = (int(n / 2) + 1)
    for j in range(2, k):
        if (n % j == 0):
            leap = 0
            break
    if leap:
        return 1
    else:
        return 0
def zhishu(**dict):
    for i in range(1,2000):
        a=get(i)
        if i<=100 and a==1:
               dict['1~99'].append(i)
        elif i>100 and i<=1000 and a==1:
                dict['100~999'].append(i)
        else:
            if a==1:
                dict['1000~1999'].append(i)
if __name__ =='__main__':
    zhishu(**d)
    print(d)